package com.fowo.api.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fowo.api.common.model.RException;
import com.fowo.api.sys.entity.SysMenu;
import com.fowo.api.sys.model.CreateSysMenu;
import com.fowo.api.sys.model.SysMenuBatchSetAppPo;
import com.fowo.api.sys.model.SysMenuSearch;
import com.fowo.api.sys.model.SysMenuVo;

import java.util.List;

public interface SysMenuService extends IService<SysMenu> {
    SysMenu create(CreateSysMenu model) throws RException;

    List<SysMenuVo> search(SysMenuSearch search);

    List<SysMenuVo> getUserMenuTree(Long userId);

    void batchSetApp(SysMenuBatchSetAppPo menuBatchSetAppPo);
}
